Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser_multiline.rb must require parser_regexp #1453

Merged

Conversation

richm
Copy link
Contributor

@richm richm commented Feb 9, 2017

Because parser_multiline uses Fluent::Plugin::RegexpParser it must
require parser_regexp, otherwise, you get error messages like this
when using in_tail with format multiline:

2017-02-09 02:02:25 +0000 [error]: #0 fluent/supervisor.rb:674:block in main_process: config error file="/etc/fluent/fluent.conf" error_class=Fluent::ConfigError error="Invalid regexp '^(?<time>\\S+\\s+\\S+\\s+\\S+)\\s+(?<host>\\S+)\\s+(?<ident>[\\w\\/\\.\\-]*)(?:\\[(?<pid>[0-9]+)\\])?[^\\:]*\\:\\s*(?<message>.*)$': uninitialized constant Fluent::Plugin::RegexpParser\nDid you mean?  RegexpError"

…::Plugin::RegexpParser

Because parser_multiline uses Fluent::Plugin::RegexpParser it must
require parser_regexp, otherwise, you get error messages like this
when using in_tail with format multiline:
```
2017-02-09 02:02:25 +0000 [error]: #0 fluent/supervisor.rb:674:block in main_process: config error file="/etc/fluent/fluent.conf" error_class=Fluent::ConfigError error="Invalid regexp '^(?<time>\\S+\\s+\\S+\\s+\\S+)\\s+(?<host>\\S+)\\s+(?<ident>[\\w\\/\\.\\-]*)(?:\\[(?<pid>[0-9]+)\\])?[^\\:]*\\:\\s*(?<message>.*)$': uninitialized constant Fluent::Plugin::RegexpParser\nDid you mean?  RegexpError"
```
@richm richm force-pushed the parser_multiline-must-require-parser_regexp branch from 96a9f52 to 863309a Compare February 9, 2017 02:10
@repeatedly repeatedly merged commit 772f71f into fluent:master Feb 9, 2017
@repeatedly
Copy link
Member

Oops. Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants